
package net.swa.dewei.beans.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/***
 * 得威生活商品实体类
 * @author dawei
 *
 */
@Entity
@Table(name = "t_life_goods")
public class LifeGoods
{
    //PK
    private Long id;

    /**名称**/
    private String name;

    private String pinpai;

    //型号or 规格
    private String guige;

    private double cardprice;

    private double marketPrice;

    private String imgUrl;

    /**图片，可以为多幅图片，存数组逗号隔开，长度要设置很大2000**/
    private String imageUrl;

    /**详细说明**/
    private String detailInfo;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    /**排序**/
    private Integer sort;

    /** 状态  控制车型是否默认手机端显示 **/
    private Integer status;

    //购买数量不做数据库映射
    private Integer buyNum;

    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getDetailInfo()
    {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo)
    {
        this.detailInfo = detailInfo;
    }

    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public String getPinpai()
    {
        return pinpai;
    }

    public void setPinpai(String pinpai)
    {
        this.pinpai = pinpai;
    }

    public String getGuige()
    {
        return guige;
    }

    public void setGuige(String guige)
    {
        this.guige = guige;
    }

    public double getCardprice()
    {
        return cardprice;
    }

    public void setCardprice(double cardprice)
    {
        this.cardprice = cardprice;
    }

    public double getMarketPrice()
    {
        return marketPrice;
    }

    public void setMarketPrice(double marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    @Transient
    public Integer getBuyNum()
    {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum)
    {
        this.buyNum = buyNum;
    }

}
